package com.xc.mapper;

import com.xc.dto.CourseDTO;
import com.xc.dto.ShoppingDTO;
import com.xc.entity.CourseEntity;
import com.xc.entity.ShoppingEntity;
import com.xc.entity.WebShoppingEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingMapper extends BaseMapper<ShoppingDTO, WebShoppingEntity> {
    List<ShoppingDTO> findByCourseIdAndUserId(WebShoppingEntity webShoppingEntity);
    int findByCourseIdAndUserIdCount(WebShoppingEntity webShoppingEntity);
    List<ShoppingDTO> findByUserId(WebShoppingEntity webShoppingEntity);

    Integer findCountByUserId(WebShoppingEntity webShoppingEntity);
}
